#include "ivbuffer_ogl.h"
#include "log.h"
#include "render_ogl.h"

vbuffer_ogl::vbuffer_ogl(u32 _size,buffer_usage _usage,u32 _format,u32 _block_size)
{
	m_format = _format;
	m_size = _size;
	m_block_size = _block_size;
	
	//#TODO

	m_data = new byte[_size];
}

vbuffer_ogl::~vbuffer_ogl()
{
	//#TODO
	delete m_data;
}

void* vbuffer_ogl::lock(buffer_lock _lock)
{
	
	//#TODO

	return m_data;
}

void vbuffer_ogl::unlock()
{
	//#TODO
}

ibuffer_ogl::ibuffer_ogl(u32 _size,buffer_usage _usage)
{
	m_size = _size;

	//#TODO
	m_data = new byte[_size];
}

ibuffer_ogl::~ibuffer_ogl()
{
	//#TODO
	delete m_data;
}

void* ibuffer_ogl::lock(buffer_lock _lock)
{
	//#TODO

	return m_data;
}

void ibuffer_ogl::unlock()
{
	//#TODO
}